package inv.cal.view;

import java.awt.Color;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JComponent;

public class ViewUtil {
	public static void highlightHoliday(JComponent label){
		label.setBorder(BorderFactory.createLineBorder(Color.decode("0XF4A460"), 1));
	}
	
	public static void highlightInfo(JComponent label){
		label.setFont( label.getFont().deriveFont(Font.BOLD) );
	}
	
	public static void highlightWarn(JComponent label){
		label.setForeground(Color.RED);
	}
	
	public static void defaultDay(JComponent label){
		label.setBorder(null);
		label.setForeground(null);
		label.setFont( label.getFont().deriveFont( Font.PLAIN ) );
		label.setToolTipText(null);
	}
	
	public static void highlightSelected(JComponent label){
		label.setBorder(BorderFactory.createLineBorder(Color.decode("0x4169E1"), 2));
	}
}
